package com.ytktt.study.week8.task6.hmily.tcc.order.service;

import java.math.BigDecimal;

/**
 * TODO
 *
 * @author ytk
 */
public interface OrderService {

    String orderPay(Integer itemAmount, BigDecimal payAmount);

    String testOrderPay(Integer itemAmount, BigDecimal payAmount);

    String orderPayWithNested(Integer itemAmount, BigDecimal payAmount);

    String orderPayWithNestedException(Integer itemAmount, BigDecimal payAmount);

    String mockItemStockWithTryException(Integer itemAmount, BigDecimal payAmount);

    String mockItemStockWithTryTimeout(Integer itemAmount, BigDecimal payAmount);

    String mockAccountWithTryException(Integer itemAmount, BigDecimal payAmount);

    String mockAccountWithTryTimeout(Integer itemAmount, BigDecimal payAmount);

    String mockItemStockWithConfirmTimeout(Integer itemAmount, BigDecimal payAmount);
}
